﻿using Microsoft.AspNetCore.Builder;
using System.Reflection;
using Zy.Shared.Rpc.Registers;

namespace Zy.User.Services.Registers
{
    public static class UseZyService
    {
        /// <summary>
        /// 使用Grpc
        /// </summary>
        /// <param name="app"></param>
        /// <returns></returns>
        public static WebApplication MapUserService(this WebApplication app)
        {
           app.MapZyGrpcService(Assembly.GetExecutingAssembly());
            return app;
        }
    }
}
